package service;

import model.Users;


public interface UserService {
	 /**
     * Gets the user by username.
     * 
     * @param username
     *            the username
     * @return the user with the requested username or null if it does not exist
     * @throws ServiceException 
     */
    Users getUserByUsername(String username) throws ServiceException;
    
    /**
     * Verifies if the supplied password is correct.
     * 
     * @param user     The user to verify the password for.
     * @param password The password supplied by the user.
     * @return         Returns True if the password is correct.
     */
    boolean verifyPassword(Users user, String password);
}
